(navigation image)
Home American Libraries | Canadian Libraries | Universal Library | Community Texts | Project Gutenberg | Children's Library | Biodiversity Heritage Library | Additional Collections
Search: Advanced Search
Anonymous User (login or join us)
Upload
See other formats

Full text of "Arduino"

Use a Common Anode RGB LED 



I 



Make Projects 



build, hack, tweak, share, discover,' 



Use a Common Anode RGB LED 



Written By: Eric Weinhoffer 



PARTS: 



Common Anode RGB LED (1) 
330 ohm resistor (3) 
Jumper Wire (4) 



SUMMARY 

How to fade between colors with the Common Anode RGB LED, included in Maker Shed's 
Ultimate Arduino Microcontroller Pack. 



© Make Projects www.makeprojects.com Page 1 of 4 



Use a Common Anode RGB LED 














B 



<+) 



T 



V vsz 



6 6 6 

RGB 



Grab all the parts, and begin by plugging the Common Anode RGB LED into your 
breadboard. 

• Orient it in the breadboard with the red leg on the left, and power leg second from the 
left. 

• That's power (long) leg to F42 on the breadboard, with the red leg right next to it in F43. 



© Make Projects 



www.makeprojects.com 



Page 2 of 4 



Use a Common Anode RGB LED 




Now wire up the positive (longest) lead of the LED to the 5V header on the Arduino. 

• You can use a jumper from J42 to the Arduino. 

Connect the three resistors, one from each of the three other LED pins to another spot on 
the transparent breadboard. 

• Place one 330 Q resistor in G43 and G49. 

• Place another 330 Q resistor in H41 and H35. 

• Place the last 330 Q resistor in G40 and G34. 



© Make Projects 



www.makeprojects.com 



Page 3 of 4 



Use a Common Anode RGB LED 





• Next, connect the three pins of the 
LED to the Arduino. 

* Red goes to PWM Pin 6, from 
breadboard pin J 49. 

* Green goes to PWM Pin 5, from 
breadboard pin J 35. 

* Blue goes to PWM Pin 3, from 
breadboard pin J 34. 

• Now you can grab the code from 
GitHub and upload it to your 
Arduino. Have fun! 



This document was last generated on 201 3-02-26 05:1 4:1 PM. 



© Make Projects 



www.makeprojects.com 



Page 4 of 4